package ${package.Mapper};

<#--import ${package.Entity}.${entity};-->
<#--<#if superMapperClassPackage??>-->
<#--import ${superMapperClassPackage};-->
<#--</#if>-->
import com.sinoits.orm.pojo.${entity}Do;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * ${table.comment!} mapper接口
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
@Mapper
<#if kotlin>
class ${table.mapperName}<#if superMapperClass??> : ${superMapperClass}()</#if>
<#else>
<#--<#if superMapperClass??>-->
<#--public interface ${table.mapperName} extends ${superMapperClass}<${entity}> {-->
<#--<#else>-->
<#--public interface ${table.mapperName} {-->
<#--</#if>-->
public interface ${table.mapperName} {

    /**
    * 批量插入
    * @param ${entity?uncap_first}List 批量数据
    * @return
    */
    int insertBatch(List<${entity}Do> ${entity?uncap_first}List);

    /**
    * 条件查询
    * @param ${entity?uncap_first} 查询实体
    * @return
    */
    List<${entity}Do> selectListByCondition(@Param("record") ${entity}Do ${entity?uncap_first});

}
</#if>
